@extends('shopWx.global')

@section('content')
<div class="page page-current" id="store-select">
    <header class="bar bar-nav">
        <h1 class="title">地域選択</h1>
    </header>
    <div class="content">
        <div class="list-block">
            <ul>
                @foreach($store as $v)
                    <li>
                        <label class="label-checkbox item-content">
                            <input type="radio" name="id" value="{{ $v->id }}" {{ (isset($store[$storeID]) && $store[$storeID]->id == $v->id) ? 'checked' : '' }}>
                            <div class="item-media"><i class="icon icon-form-checkbox"></i></div>
                            <div class="item-inner">
                                <div class="item-title-row">
                                    <div class="item-title">{{ $v->name }}</div>
                                </div>
                            </div>
                        </label>
                    </li>
                @endforeach
            </ul>
        </div>
    </div>
    <div class="check-footer">
        <div class="row no-gutter">
            <div class="col-100">
                <a href="#" class="button button-success" onclick="$.selectStore('{{ action('Shop\StoreSelectController@getSet') }}');"> 確定 </a>
            </div>
        </div>
    </div>
</div>
@endsection